<%@ taglib prefix="C" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 山有木兮木有枝
  Date: 2021/12/1
  Time: 21:31
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>
    <!-- 包含头部信息用于适应不同设备 -->
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 包含 bootstrap 样式表 -->
    <link rel="stylesheet" href="https://apps.bdimg.com/libs/bootstrap/3.2.0/css/bootstrap.min.css">
    <!-- 可选: 包含 jQuery 库 -->
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <!-- 可选: 合并了 Bootstrap JavaScript 插件 -->
    <script src="https://apps.bdimg.com/libs/bootstrap/3.2.0/js/bootstrap.min.js"></script>



    <style>
        .btn-file > input {
            position: absolute;
            top: 0;
            right: 0;
            width: 100%;
            height: 100%;
            margin: 0;
            font-size: 23px;
            cursor: pointer;
            filter: alpha(opacity=0);
            opacity: 0;

            direction: ltr;
        }

        .fileinput .thumbnail > img {
            max-height: 100%;
        }



        .fileinput.input-group > * {
            position: relative;
            z-index: 2;
        }


        .row {
            margin-bottom: 30px;
            margin-right: 0 !important;
            margin-left: 0 !important;
        }

        .form-group {
            margin-bottom: 30px;
        }

        .submit {
            margin-left: 30px;
        }

        .modal-btns {
            text-align: center;
        }

    </style>
</head>
<body>
<div class="container-fluid">
    <div class="row">
        <div>
            <ol class="breadcrumb">
                <li><a href="${pageContext.request.contextPath}/main/gomain"  class="btn btn-primary btn-sm" role="button"><span class="glyphicon glyphicon-home pull-right" aria-hidden="true"></span>&nbsp;&nbsp; 主&nbsp;&nbsp; 页</a></li>
                <li class="active">文章管理</li>
                <li><a href="${pageContext.request.contextPath}/articleType/findAllCount?currentPage=${currentPage}">类型管理</a></li>
                <li class="active">类型添加</li>
            </ol>
        </div>
    </div>
    <div class="row">
        <div class="col-lg-8 col-lg-offset-2">
            <%--            ${pageContext.request.contextPath}/article/addArticle?currentPage=${currentPage}&rows=${rows}--%>
            <form class="form-horizontal" action="${pageContext.request.contextPath}/articleType/addArticleType" method="post">
                <div class="form-group">
                    <label for="typeName" class="col-lg-2 control-label">类型名称</label>
                    <div class="col-lg-10">
                        <input type="text" class="form-control" id="typeName" name="typeName" placeholder="输入名称" >
                        <span id="newsTitleMessage"></span>
                    </div>
                </div>

                <!-- 演示初始化下拉列表的功能 -->
                <div class="form-group">
                    <label for="typeState" class="col-lg-2 control-label">文章状态</label>
                    <div class="col-lg-10">
                        <select class="form-control" name="typeState" id="typeState">
                                <option disabled value="" selected>--请选择--</option>
                               <option value="1" >可用</option>
                               <option value="2">不可用</option>
                        </select>
                    </div>
                </div>

                <div class="form-group">
                    <label for="typeSort" class="col-lg-2 control-label">文章状态</label>
                    <div class="col-lg-10">
                        <select class="form-control" name="typeSort" id="typeSort">
                                    <option disabled value="" selected>--请选择--</option>
                                    <option value="1" >小说</option>
                                    <option value="2" >故事</option>
                                    <option value="3" >诗歌</option>
                                    <option value="4" >童话</option>
                        </select>
                    </div>
                </div>



                <div class="modal-btns">
                    <button type="submit" class="btn btn-primary submit" id="button">添 加</button>
                </div>
            </form>
        </div>
    </div>
</div>
<script>

</script>
</body>
</html>